/*
 *    Copyright (c) 2018-2025, nart All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: nart
 */

package com.nai365.nart.operation.dto;


import com.nai365.nart.member.dto.SimpleMemberDto;
import com.nai365.nart.member.entity.Member;
import com.nai365.nart.product.entity.SkuInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 质押记录
 *
 * @author baogs
 * @date 2022-07-01 11:13:17
 */
@Data
@Builder
@ApiModel(value = "质押记录")
@NoArgsConstructor
@AllArgsConstructor
public class PledgeRecordDto {


	/**
	 * id
	 */
	@ApiModelProperty(value = "id")
	private Long id;


	/**
	 * 质押需求id
	 */
	@ApiModelProperty(value = "质押需求")
	private PledgeDemandDto pledgeDemand;

	/**
	 * 计划质押数量
	 */
	@ApiModelProperty(value = "质押数量")
	private Integer amount;


	/**
	 * 收益碎片
	 */
	@ApiModelProperty(value = "收益(碎片)")
	private Integer income;


	/**
	 * 预计收益碎片
	 */
	@ApiModelProperty(value = "预计收益")
	private Integer estimatedIncome;

	/**
	 * 状态：1:正在质押；2：我完成;3：已取消
	 */
	@ApiModelProperty(value = "状态：1:正在质押；2：已完成；3：已取消")
	private Integer status;


	@ApiModelProperty(value = "用户")
	private SimpleMemberDto member;


	@ApiModelProperty(value = "创建时间")
	private LocalDateTime createTime;

	@ApiModelProperty(value = "结束时间")
	private LocalDateTime endTime;

	@ApiModelProperty(value = "结束时间")
	private LocalDateTime beginTime;


	@ApiModelProperty(value = "预计结束时间")
	private LocalDateTime planEndTime;


	@ApiModelProperty(value = "sku列表")
	private List<SkuInfo> skuList;


}
